package com.mavenq.fly.test;

import com.google.common.base.Splitter;
import org.junit.Test;

import java.util.Arrays;
import java.util.List;

public class GuavaDemo {

    @Test
    public void testSplit(){
        String skuCodes = "ab , fs , 31 , bb";
        List<String> strings = Splitter.on(",").trimResults().omitEmptyStrings().splitToList(skuCodes);
        List<String> strings2 = Arrays.asList(skuCodes.split(","));
        strings.stream().forEach(System.out::println);
        strings2.stream().forEach(System.out::println);
    }

}
